<!DOCTYPE html>
<html lang="en">
  <head>
      <meta charset="UTF-8">
      <title>数组遍历</title>
    <script type="text/javascript">
      var array = ["Audi", "BMW", "volvo", 100, 1.1, true];

      //遍历
      console.log(array.length);  //6
      for (let i = 0; i < cars.length; i++) {
        console.log(cars[i]); //log()自动换行
      }
    </script>
  </head>
  <body>

  </body>
</html>